/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mygame.Object;

import mygame.Backbone.GlobalVars;

/**
 *
 * @author Tobi
 */
public class ObjectFactory {

    static GameObject makeObject(String name) {
        GameObject obj;

        if (name.equals(GlobalVars.OBJECT_NAME_AST)) {
            obj = new Pickable(name);
        } else if (name.equals(GlobalVars.OBJECT_NAME_STONE)) {
            obj = new Pickable(name);
        } else {
            obj = new Pickable(name);
        }

        return obj;
    }
}
